from logging import log
from typing import Dict
from robot.api import logger
from robot.api.deco import keyword, library

import xlwings as xw

@library
class ExcelLibTest:
    @keyword("Reopen And Save Excel")
    def reopen_and_save_excel(self, file_path):
        app = xw.App(visible=False)
        wb = app.books.open(file_path)
        wb.save()
        wb.close()
        app.quit()